<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateSkinDetectorsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('skin_detectors', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('type', 128)->unique('sk_type')->comment('肤质检测仪型号');
			$table->boolean('is_deleted')->default(0)->comment('是否被删除');
			$table->string('remark')->nullable()->comment('备注');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('skin_detectors');
	}

}
